<?php 



$form="fportal_pageslist";
?>
<table>
<tr valign="top">
    <td>
<div class="cadretop">Export Pages</div>
<div class="cadre">
<a onclick="exportPages(document.<?php echo $form; ?>);return false;" >
<img width="32" border="0" title="Export selected rows" src="./images/icons/export.png">
</a>
</div>
    </td>



<td>
<div class="cadretop">Edit Rights</div>
<div class="cadre">

<a onclick="ew_SubmitSelected(document.<?php echo $form; ?>, '<?php echo createRelativeUrl("operation","rights")?>');return false;"  >
    <img width="32" border="0" title="Copy" src="./images/menu/portal_credentials.png">
</a>

    <?php targetGroups(); ?>


    
</div>

</td>

<td>
<div class="cadretop">Copy To</div>
    <div class="cadre">


<a onclick="ew_SubmitSelected(document.<?php echo $form; ?>, '<?php echo createRelativeUrl("operation","copy")?>');return false;"  >
<img width="32" border="0" title="Copy" src="./images/copy.png">
</a>

<?php targetPortal(); ?>
</div>
</td>

</tr>
</table>


<script>
function exportPages(f)
{
	/*if (!f) return;
	if (!ew_KeySelected(f)) {
		alert(ewLanguage.Phrase("NoRecordSelected"));
	} else {
	*/
		id=53;



		$.get("../portlet.php", 
		{app: "system",
		operation:"export_page",
		pageId:id},
		   function(data){
		      
			$("#result_export").html(data);
				$("#result_export").dialog({
					autoOpen: true,
					height: 140 ,
					width: 600,
					modal: true,
					zIndex: 3999,
					buttons: {
						
					}
					


					});

			 
		   });

		
		
	//}
	}
</script>


<div id="result_export" title="Export pages"></div>